package com.freshfresh.activity.classification;

import java.util.List;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;

import com.android.volley.Request;
import com.freshfresh.activity.BaseActivity;
import com.freshfresh.activity.R;
import com.freshfresh.adapter.ProductImageAdapter;
import com.freshfresh.utils.RequestManager;
//分类
public class ProductImageActivity extends BaseActivity {
	private ImageView iv_back = null;
	private ListView lv_product_picture_listview = null;
	List<String> listmap;
	ProductImageAdapter adapter;
	private TextView tv_title=null;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ac_product_picture);
		listmap=(List<String>)getIntent().getSerializableExtra("list");
		initView();
		
		adapter=new ProductImageAdapter(ProductImageActivity.this, listmap);
		lv_product_picture_listview.setAdapter(adapter);

	}

	public void initView() {
		iv_back = (ImageView) findViewById(R.id.iv_back);
		tv_title = (TextView) findViewById(R.id.tv_title);
		tv_title.setText("图文详情");
		lv_product_picture_listview = (ListView) findViewById(R.id.lv_product_picture_listview);
		iv_back.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				ProductImageActivity.this.finish();
			}
		});
	}

	protected void executeRequest(Request request) {
		RequestManager.addRequest(request, this);
	}
}
